home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kit PC World De Ampliacion De Windows 95
/
Kit PC World de ampliacion de Windows 95.iso
/
clarion
/
cw15
/
examp15.z
/
TAG.DOC
< prev
next >
Wrap
Text File
|
1995-09-08
|
2KB
|
43 lines
Tagging Documentation
---------------------
This example demonstrates tagging of multiple records in a browse.
It uses the MARK() attribute found in your Language Reference Manual.
In this example, go to the update procedure for the Committees.
This window allows you to tag multiple names from the members list
and add or delete them to a particular committee.
To use the MARK attribute, you first go to the list box properties
dialog. There you will see the MARK field. In that space, you are to
enter a flag field, that is part of the queue, that the MARK attribute
will change when you select or unselect. This field is most commonly
a byte field and is changed from 0 to 1 when it is selected, and back
to 0 when unselected.
In the application generator, you have the choice of using a
pre-defined queue from the browse control templates, or develop your
own. If you develop your own queue, simply add a byte field to your
queue and put that field name in the MARK field of your List Box
Properties. If you are using the browse that comes with the browse
template, CW provides that field for you. The best way to find the mark
field label is to go to the source module corresponding with your
procedure (In this case, it is wise to have your modules set to one
procedure per model). Near the beginning of the procedure, you will
find your queue definition. In the queue definition, you will see
that your mark field is defined for you as below.
Queue:Browse QUEUE ! Browsing Queue
BRW1::COM:Tyoe LIKE(COM:Tyoe) ! Queue Display field
BRW1::COM:Name LIKE(COM:Name) ! Queue Display field
BRW1::Position STRING(255) ! Queue POSITION information
BRW1::Mark BYTE ! Queue POSITION information
END ! END (Browsing Queue)
The prefix of the field, BRW1, changes from browse to browse. For
example, the next browse may be have the prefix, BRW2. For this reason,
it is advised to check with your source code if you do not know.
That is all you have to do to invoke the tagging attribute. What you
do with the option is up to you.